package concrete;

public class Tax extends Tile{
	
	//VARIABLES
	private int amount;

	
	//CONSTRUCTOR
	Tax(String tileName,int amount) {
		//explicit call to superclass Tile constructor
		super(tileName);
		this.amount = amount;
	}


	//GETTER
	public int getAmount() {
		return this.amount;
	}


	//SETTER
	public void setAmount(int amount) {
		this.amount = amount;
	}


	//METHODS
	public int payTax(int cash) {
		cash = cash - this.amount;
		return cash;
	}
}
